﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;
using System.IO;

namespace ANEPWebService
{
    public class Helper
    {
        private XmlSerializer xml;
        private MemoryStream memoryStream;
        public Helper(Object pObject)
        {
           if(pObject != null)
           {
               this.xml = new XmlSerializer(typeof(Object));
                memoryStream = new MemoryStream();
                this.xml.Serialize(memoryStream, pObject);
           }
        }

        public XmlSerializer Xml
        {
            get { return xml; }
            set { xml = value; }
        }

        internal XmlSerializer GetData()
        {
            return xml;
        }
    }
}